﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace QinTools.Utilities
{
    public static class Property
    {
        public static string GetSymbolName<T, R>(this T obj, Expression<Func<T, R>> expr)
        {
            var body = expr.Body as MemberExpression;
            return body.Member.Name;
        }
    }
}
